#ifndef BANANA_H
#define BANANA_H

#include "worldobject.h"
#include <QString>
#include <QRect>

class Banana : public WorldObject
{
private:
    int scoreValue; // each banana has a score value (score value is 1 in the 80 version for all bananas)

    int lowestPos;  // the y-coordinate where the banana will be lying on the grass if it didn't get hit

    void initialize(); // called by the constructor

public:
    Banana();

    Banana(int score);

    // updates the banana's position in world
    void updatePosition();

    void nextImage();

    // returns a QString with information about the banana (for saving)
    QString saveData() { return ""; }

    // accessors
    int getScoreValue() { return scoreValue; }
    QString getImage() { return image; }

    // mutators
    void setScoreValue(int newScoreValue) { scoreValue = newScoreValue; }
    void setImage(const QString& newImg) { image = newImg; }

    ~Banana();
};

#endif // BANANA_H
